//priority 89
/**
 * 等级的词条组实现了等级词条的生成
*/
function RarityEntryGroup(name) {
    BaseEntryGroup.call(this, name)
}

// 建立原型链
RarityEntryGroup.prototype = Object.create(BaseEntryGroup.prototype);
RarityEntryGroup.prototype.constructor = RarityEntryGroup;

//词条组进行初始化时候调用
RarityEntryGroup.prototype.apply = function (nbt, name, monster) {
    this.Entrys.forEach((entry) => {
        let level = parseInt(Math.random() * 9)
        entry.SaveData(nbt, monster, level)
        entry.ChangeName(nbt, name, monster, level)
    })
}

var a = new RarityEntryGroup("rarity_group").init()
global.EntryHelper.RegisterEntryGroup(a)